<?php
/**
 * Created by PhpStorm.
 * User: STICKYQU
 * Date: 2016/7/7
 * Time: 18:17
 */
use  util\CurlUtil;

require_once '../bootstrap.php';
require '../util/CurlUtil.php';
$path="register.php";
$appname= trim($_POST['appname']);
$description = trim($_POST['description']);
$domains = trim($_POST['domains']);
$usertypes = trim($_POST['usertypes']);

$data = array(
    'appname' => $appname,
    'description' => $appname,
    'domains' => $domains,
    'usertypes' => $usertypes
);
//调用oss后台服务验证用户信息
$response = CurlUtil::curl_post(SERVER_URL.$path, $data);
echo $response;